package core

import (
	"log/slog"

	"gorm.io/gorm"

	"torler.com/qingyue/apps/spider/config"
)

type AppContext struct {
	Config *config.Config
	DB     *gorm.DB
	Logger *slog.Logger
}

func NewAppConext(config *config.Config, db *gorm.DB, logger *slog.Logger) *AppContext {
	return &AppContext{
		DB:     db,
		Logger: logger,
		Config: config,
	}
}
